<template>
 异步加载数据组件
 <!-- {{lxy}} -->
 <!-- 数据绑定到自定义数据上 -->
 <h1 v-beauty="value"></h1>
</template>
<script setup lang="ts">
import axios from 'axios'
import { ref } from 'vue';

let value = ref(6);
var {data:{content:joke}} = await axios.get("/api/api/rand.qinghua?format=json");
//加上await 隐藏Promise {<pending>}等待过程
// var joke =  axios.get("/api/api/rand.qinghua?format=json");
console.log(joke)
</script>